package com.atguigu.spzx.cloud.order.feign;

import com.atguigu.spzx.cloud.order.config.DefaultFeignConfiguration;
import com.atguigu.spzx.cloud.order.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestHeader;

//@FeignClient(value = "spzx-cloud-user",configuration = DefaultFeignConfiguration.class)//局部生效
@FeignClient(value = "spzx-cloud-user")
public interface UserFeignClient {
    @GetMapping("/api/user/findUserByUserId/{userId}")
    public abstract User findUserByUserId(@PathVariable("userId") Long userId) ;
}
